<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('字典数据列表')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="gray-bg">
<div class="container-div">
	<div class="row">
		<div class="col-sm-12 search-collapse">
			<form id="data-form">
				<input type="hidden" id="plannerCompanyId" name="plannerCompanyId" th:value="${plannerCompanyId}"/>
			</form>
		</div>
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table"></table>
		</div>
	</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<script th:inline="javascript">
	var editFlag = [[${@permission.hasPermi('system:dict:edit')}]];
	var removeFlag = [[${@permission.hasPermi('system:dict:remove')}]];
	var datas = [[${@dict.getType('sys_normal_disable')}]];
	var prefix = ctx + "user/company/planner";

	$(function() {
		var options = {
			url: prefix + "/list",
			createUrl: prefix + "/add/{id}",
			updateUrl: prefix + "/edit/{id}",
			removeUrl: prefix + "/remove",
			removeUrl: prefix + "/remove",
			exportUrl: prefix + "/export",
			sortName: "plannerId",
			sortOrder: "desc",
			modalName: "数据",
			columns: [{
				checkbox: true
			},
				{
					field: 'plannerId',
					title: '编号'
				},
				{
					field: 'plannerName',
					title: '策划师名称'
				},
				{
					field: 'plannerPhone策划师手机号',
					title: '字典键值'
				},
				{
					field: 'plannerDate',
					title: '添加时间'
				},
				{
					field: 'plannerOrderVolume',
					title: '订单量'
				},
				{
					field: 'plannerState',
					title: '账号状态',
					align: 'center',
					formatter: function(value, row, index) {
						if(value == 0){
							return '<span style="color: red">禁用</span>';
						}
						return "正常";
					}
				}]
		};
		$.table.init(options);
	});
</script>
</body>
</html>